<?php
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/VO.php");
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/DAO.php");
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/BasicDAO.php");
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/BasicVO.php");
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/DB.php");
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/Logger.php");
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/ModelConfig.php");
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/Mapping.php");
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/Stats.php");
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/StatsDAO.php");
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/MappingDAO.php");
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/Hash.php");
require ("/home/rainx/Backup/BackupFilesFromOldSystem/BackupOnMp3/googlecode/solor/website/cn/solor/duanurl/Facade.php");

header('content-type: text/html;charset=utf-8');
if (!empty($_REQUEST['realurl']))
    $realurl = $_REQUEST['realurl'];
if (!empty($_REQUEST['token']))
    $token = $_REQUEST['token'];
if (!empty($realurl))
{
    if (!empty($token))
    {
        $result = Facade::genTokenWithToken($realurl, $token);
    }
    else
    {
        $result = Facade::genToken($realurl);
    }
}
?>
<form>
 输入长的url
 <input type="text" name="realurl" size='30'/> <button type='submit'>提交</button>
<hr />
 定制的名称
 http://duanurl.cn/<input type="text" name="token" size='12' maxlength='30'/>
</form>
